﻿<UserControl x:Class="MyPoints.UserControls.FilterControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:MyPoints.UserControls"
             mc:Ignorable="d" 
             d:DesignHeight="24" d:DesignWidth="425" FontFamily="Museo 300">
  <StackPanel DockPanel.Dock="Right" Orientation="Horizontal">
    <Label DockPanel.Dock="Right" Content="Filter:" Margin="0 4 0 0" />
    <TextBox DockPanel.Dock="Right" x:Name="txtFilter" Width="128" Margin="0 4 0 4" ToolTip="Insert filtering expression" 
             Text="{Binding Expression}" />
    <ComboBox DockPanel.Dock="Right" x:Name="cmbFilter" Width="64" Margin="4 4 4 4" ToolTip="Select where to check for filtered expression"
             ItemsSource="{Binding Options}" SelectedItem="{Binding Option}" />
    <CheckBox DockPanel.Dock="Right" x:Name="chkFilterAsRegex" Content="as regex" Margin="4 8 4 4" 
              ToolTip="Check to behave filtering expression as regular expression"
              IsChecked="{Binding IsRegex}"/>
    <Button x:Name="btnSetFilter" Content="Set" Width="48" ToolTip="Set new filter" Click="btnSetFilter_Click" />
    <Button x:Name="btnClearFilter" Content="Clear" Width="48" ToolTip="Clear filter" Click="btnClearFilter_Click" />
  </StackPanel>
</UserControl>
